package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.domain.db.UserInfo;

import java.util.List;

public interface BlackListApi {
    IPage<UserInfo> findByUserId(Integer page, Integer pagesize, Long userId);

    void remove(Long userId, Long blackUserId);

    /**
     * 获取当前用户的黑名单用户id有序集合
     *
     * @param userId
     * @return
     */
    List<Long> findBlackListIdsListByUserId(Long userId);

    /**
     * 查询拉黑了当前用户的id集合
     *
     * @param currentUserId
     * @return
     */
    List<Long> findListBlackCurrentUser(Long currentUserId);
}
